package com.liangzhong.model.shop.vo
{
	import com.liangzhong.model.AppData;
	import com.liangzhong.model.goods.vo.GoodsVo;

	public class ShopVo
	{
		public function ShopVo()
		{
		}
		/**
		 *对应表id 
		 */
		public var id :int;
		/**
		 *道具类型 
		 */
		public var ntype :int;
		/**
		 *星期几开放 
		 */
		public var week :int;
		/**
		 *国家专属 
		 */
		public var country :int;
		/**
		 *图片地址 
		 */
		public var header :String;
		/**
		 *活动折扣 
		 */
		public var rebate :int;
		/**
		 *描述 
		 */
		public var descplay :String;
		
		
		/**
		 *点券消耗 
		 */
		public var cost:int;
		/**
		 *解析数据 
		 * @param $obj
		 * 
		 */		
		public function analysis($obj:Object):void
		{
			for(var str:String in $obj)
			{
				if(this.hasOwnProperty(str))
					this[str] = $obj[str];
			}
			
			var vo:GoodsVo = AppData.getInstance().goodsManager.getGoodsByTypeAndId(ntype,id);
			cost = vo.cashpoint;
		}
	}
}